package com.whfc.fvs.enums;

/**
 * @Description: 视频监控播放模式
 * @author: qzexing
 * @version: 1.0
 * @date: 2020/5/19 11:39
 */
public enum FvsDeviceStreamMode {


    SD(1, "标清"),

    HD(2, "高清");

    private final Integer value;

    private final String desc;

    FvsDeviceStreamMode(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }


    public static FvsDeviceStreamMode parseValue(Integer value) {
        switch (value) {
            case 1:
                return SD;
            case 2:
                return HD;
            default:
                return null;
        }
    }

}
